package com.dzt.androidframework.photo.adapter;

import android.content.Context;

import com.dzt.androidframework.R;
import com.dzt.androidframework.photo.UrlImage;
import com.dzt.androidframework.recycler.RecyclerAdapter;
import com.dzt.androidframework.recycler.RecyclerHolder;

import java.util.List;

/**
 * Created by M02323 on 2017/9/16.
 */

public class ImageRecycleViewAdapter extends RecyclerAdapter<UrlImage> {

	public ImageRecycleViewAdapter(Context context, List<UrlImage> datas, int layoutId) {
		super(context, datas, layoutId);
	}

	@Override
	public void convert(RecyclerHolder holder, UrlImage data, int position) {
		holder.setText(R.id.tv_name, data.name);
		holder.setImageGlide(R.id.iv_logo, data.url);
	}
}
